<template>
  <el-breadcrumb separator="/">
    <el-breadcrumb-item :to="{ path: '/index' }">首页</el-breadcrumb-item>
    <el-breadcrumb-item
      v-for="r in route.matched"
      :key="r.name"
      :to="{ path: r.path }"
    >{{ r.meta.title }}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script lang="ts" setup>
import { useRoute } from 'vue-router';
const route = useRoute()
// console.log(route);

</script>
 
<style lang="less" scoped>
</style>